package com.hope.domain.pojo;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("`order`")
public class OrderList implements Serializable {
    @TableId
    private Long id;
    private Long userId;
    private Long addressId;
    private Long merchantId;
    private String orderNumber;     // 订单号（全局唯一）
    private BigDecimal totalPrice;  // 订单总金额
    private BigDecimal deliveryFee; // 配送费
    private BigDecimal discountPrice;//优惠金额

    private Integer status;         // 0正常 1删除 2异常
    private Integer payStatus;     // 0未支付 1已支付 2退款

    private LocalDateTime createTime;
    private LocalDateTime updateTime;
}
